import request from '../index'

interface ISgs {
    sgsName:string,
    sgsLeader:string,
    sgsPhone:string,
    sgsPlace:string,
    sgsConStart:string,
    sgsConEnd:string,
    Id?:number
}

export interface IPage {
    page:number,
    pageSize?:number
}

export function getSgsInfo(pageConfig:IPage,name?:string){
    return request({
        url:'/busi/sgs/info',
        data:{
            name,
            pageConfig
        }
    })
}
export function addtSgsInfo(Sgs:ISgs){
    return request({
        url:'/busi/sgs/add',
        data:Sgs
    })
}
export function editSgsInfo(Sgs:ISgs){
    return request({
        url:'/busi/sgs/edit',
        data:Sgs
    })
}

export function delSgsInfo(Id:number){
    return request({
        url:'/busi/sgs/delete',
        data:{
            Id
        }
    })
}
